package main

import "flag"

func main() {
	var clientID, serverAddr string
	// 构建命令行参数，相对于可以用如下指令传递两个参数给go应用
	// go run . --client_id=tester --server_addr=192.168.3.2:12359
	flag.StringVar(&clientID, "client_id", "", "client id")
	flag.StringVar(&serverAddr, "server_addr", "", "server address")
	flag.Parse()

	c := NewClient(clientID, serverAddr)
	c.Run()
}
